<template>
  <div class="tasklist">
    <div class="type">热销</div>
    <div class="item" v-for="(item,index) in tasklist" :key="index">
        <img :src="item.pic" alt="">
        <div class="msg">
            <div class="name">{{item.name}}</div>
            <div class="intro">{{item.intro}}</div>
            <div class="count">{{item.count}}</div>
            <div class="jiage">
                <span class="price">￥{{item.price}}</span>
                <span class="jia">+</span>
            </div>
        </div>
    </div>
  </div>
</template>

<script>
import pic1 from "../img/pic1.png";
import pic2 from "../img/pic2.png";
import pic3 from "../img/pic3.png";
import pic4 from "../img/pic4.png";
export default {
    data(){
    return {
        tasklist:[
            {pic:pic1,name:'挪威三文鱼刺身~薄片',intro:'取于三文鱼中段，口感鲜嫩，富含..',count:'月售40份，好评率100%',price:45},
            {pic:pic2,name:'国产生蚝~刺身',intro:'取于三文鱼中段，口感鲜嫩，富含..',count:'月售40份，好评率100%',price:8},
            {pic:pic3,name:'挪威纯鲜三文鱼~厚片',intro:'取于三文鱼中段，口感鲜嫩，富含..',count:'月售40份，好评率100%',price:54.4},
            {pic:pic4,name:'北极甜虾',intro:'取于三文鱼中段，口感鲜嫩，富含..',count:'月售40份，好评率100%',price:22.4}
        ]
        }
    }
}
</script>

<style scoped>
.type{
    font-size: 14px;
    font-weight:700;
    margin: 10px 0;
    color: rgb(74, 70, 70);
}
.item{
    display: flex;
    height: 100px;
    margin-bottom: 20px;
    padding-right: 10px;
}
.item img{
    width: 100px;
}
.item .msg{
    width: 100%;
}
.item .msg .name{
    font-size: 14px;
    font-weight: bold;
    margin-left: 10px;
}
.item .msg .intro {
    font-size: 12px;
    color: gray;
    margin-left: 10px;
}
.item .msg .count{
    font-size: 12px;
    color: gray;
    margin-left: 10px;
}
.item .jiage{
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}
.item .jiage .price{
    color: red;
    font-size: 18px;
    margin-left: 10px;
    font-weight: bold;
}
.item .jiage .jia{
    width: 20px;
    height: 20px;
    background-color: rgb(90, 148, 219);
    color: white;
    line-height: 20px;
    text-align: center;
    display: inline-block;
    border-radius: 50%;
}
</style>